<%@ page language="java" contentType="text/html; charset=UTF-8"    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec"    uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<sec:authentication property="principal" var="currentPrincipal" scope="page" />

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<!DOCTYPE html>
<html lang="zh-CN">
<head>

  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%>

</head>

<body class="ms-theme-blue">

  <%@ include file="/WEB-INF/include/header.jsp"%>
  <%@ include file="/WEB-INF/include/submenu.jsp"%>
  
  <div class="container-fluid ms-container has-ms-sidemenu">
    
    <ol class="ms-breadcrumb breadcrumb">
      <li class="active">运输工具信息&nbsp;-&nbsp;查询</li>
    </ol>
    
    <div class="ms-content-layout">
    
      <form class="form-horizontal ms-form form-personal-info" method="GET" action="${ctx.host}/supplier-reports" data-validate="true">
      
        <input type="hidden" name="transport-tool" value="true" >
        
        <div class="form-group ms-form-group">
          <label class="col-xs-2 control-label">供方代码：</label>
          <div class="col-xs-3">
            <input type="text" name="code" class="form-control" placeholder="请填写供方代码" tabindex="1">
          </div>
        
          <label class="col-xs-2 control-label">供方名称：</label>
          <div class="col-xs-3">
            <input type="text" name="name" class="form-control" placeholder="请填写供方名称" tabindex="2">
          </div>
        </div>
        
        <div class="form-group ms-form-group">
          <label class="col-xs-2 control-label">审核状态：</label>
          <div class="col-xs-3">
            <select name="status" class="select2 form-control" tabindex="3">
              <option></option>
              <c:forEach var="status" items="${enums['VehicleAuditStatus']}">
                <option value="${status}">${status.description}</option>
              </c:forEach>
            </select>
          </div>
          
          <label class="col-xs-2 control-label">是否同步：</label>
          <div class="col-xs-3">
            <select name="synchronize" class="select2 form-control" tabindex="4">
              <option></option>
              <option value="true">是</option>
              <option value="false">否</option>
            </select>
          </div>
        </div>
        
        <div class="form-group ms-form-group">
          <div class="col-xs-6 col-xs-offset-3 ms-operation-group top-margin-20 text-center">
            <div class="col-xs-5">
              <button type="reset" class="btn btn-block btn-default btn-remove">重置</button>
            </div>
            <div class="col-xs-5">
              <button type="submit" class="btn btn-block btn-primary">查询</button>
            </div>
          </div>
        </div>

      </form>

    </div> 
  </div>       
  
  <%@ include file="/WEB-INF/include/script.jsp"%>
  <d:resource type="script" root="${ctx.resource}/build" src="js/page/report/supplier-report/transport-tool-search.js" />
  <script type="text/javascript">
    require(['page/report/supplier-report/transport-tool-search'], function(page) {
      page.init()
    })
  </script>

</body>
</html>